#include<clutil.h>
#include<vector>
#define SIZE 1024
using namespace std;
//usecode
template<class T>
class GLA_Average : public GLA
{
private:
    unsigned count;
    T sum;
    T getCount() const { return count; }
    T getSum() const { return sum; }

public
    GLA_Average() : count(0), sum(0) {}
    void addItem(const T& data)
    {
        WRITE(count, 1, '+');
        WRITE(sum, data, '+');
    }
   
	void addState(const GLA_Average& other)
	{
		count += other.getCount();
		sum += other.getSum();
	}
};


int 
main()
{
     GLA_Average avg;
     for (unsigned i = 0; i < SIZE; ++i) {
     } 
}   
